



This directory contains the replication material for 1) the balance tests for the quality of the randomization
and 2) the comparison in the ideal point distributions between the OBOE participants and the general population
in the ISA telephone survey.

Both of these analyses are implemented in the persuasion_sample_setupandresults.R file.  The R file first saves
data and initial values for reading into OpenBUGS for the ideal point comparison test.  The files needed for the
OpenBUGS model are persuaion_sample_model.txt, persuasion_sample_data.txt, persuaion_sample_inits?, and 
persuaion_sample_script.txt.  This R file reads in the raw data from ISAOBOEcommonspace.dta.  After running
the OpenBUGS model, we saved the results in the coda files, and then the R file reads the coda data back in 
and generates the figure in the appendix showing the two ideal point distributions.  The figure is reproduced 
here as commonspace_ISAOBOE.pdf.  The mean and standard deviations for the (lambda) estimated factor coefficients 
from the model are saved in stats.txt.  We create the eta_dataset.dta (as shown in the R file) for convenience
if one wants to explore the correlates of ideals points using these data.

The R file in this subdirectory also reproduces the balance test of the joint distributions of the covariates that
we report in the paper (using the xBalance R tool developed by Bowers and Hansen).  The Stata .do file
balanceRegressionsStata.do implements the regression-based balance test that we report, and the .doc file
shows that output from the Stata implementation.



 